//
//  <%= prefix %><%= model_name %>.m
//

#import "<%= prefix %><%= model_name %>.h"

@implementation <%= prefix %><%= model_name %>

@dynamic <%= dynamic.join(", ") %>;

+ (RKEntityMapping *)objectMapping
{
    RKEntityMapping *mapping = [RKEntityMapping mappingForEntityForName:@"<%= model_name %>" inManagedObjectStore:[RKObjectManager sharedManager].managedObjectStore];
    <%
      unless RestKitGenerate.config[:primary_key].nil?
    %>
    mapping.identificationAttributes = @[ @"<%= RestKitGenerate.config[:primary_key] %>" ];
    <%
      end
    %>
    [mapping addAttributeMappingsFromDictionary:@{
<%= mapping.join(",\n") %>,
    }];
    return mapping;
}

@end